// 自动生成模板BcChannal
package bc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// bcChannal表 结构体  BcChannal
type BcChannal struct {
	global.GVA_MODEL
	Account         string `json:"account" form:"account" gorm:"column:account;comment:账号;size:255;"`                              //账号
	Balance         *int   `json:"balance" form:"balance" gorm:"column:balance;comment:余额;size:19;"`                               //余额
	ChannalAdd      string `json:"channalAdd" form:"channalAdd" gorm:"column:channal_add;comment:渠道IP;size:255;"`                  //渠道IP
	ChannalName     string `json:"channalName" form:"channalName" gorm:"column:channal_name;comment:渠道名;size:255;"`                //渠道名
	CodeExpress     string `json:"codeExpress" form:"codeExpress" gorm:"column:code_express;comment:验证码表达式;size:255;"`             //验证码表达式
	GetCodeCount    *int   `json:"getCodeCount" form:"getCodeCount" gorm:"column:get_code_count;comment:取码次数;size:10;"`            //取码次数
	GetCodeNum      *int   `json:"getCodeNum" form:"getCodeNum" gorm:"column:get_code_num;comment:取码数量;size:10;"`                  //取码数量
	GetPhoneNum     *int   `json:"getPhoneNum" form:"getPhoneNum" gorm:"column:get_phone_num;comment:取号数量;size:10;"`               //取号数量
	Password        string `json:"password" form:"password" gorm:"column:password;comment:密码;size:255;"`                           //密码
	PhoneExpress    string `json:"phoneExpress" form:"phoneExpress" gorm:"column:phone_express;comment:手机号表达式;size:255;"`          //手机号表达式
	PhoneOnlineTime *int   `json:"phoneOnlineTime" form:"phoneOnlineTime" gorm:"column:phone_online_time;comment:号码在线时间;size:19;"` //号码在线时间
	ProjectId       *int   `json:"projectId" form:"projectId" gorm:"column:project_id;comment:项目id;size:19;"`                      //项目id
	ProjectName     string `json:"projectName" form:"projectName" gorm:"column:project_name;comment:项目名;size:255;"`                //项目名
	RemainMaxNum    *int   `json:"remainMaxNum" form:"remainMaxNum" gorm:"column:remain_max_num;comment:在线库存;size:10;"`            //在线库存
	ThreadNum       *int   `json:"threadNum" form:"threadNum" gorm:"column:thread_num;comment:取号线程;size:10;"`                      //取号线程
	RecordVersion   int    `json:"recordVersion" form:"recordVersion" gorm:""`                                                     //版本号
}
type BcChannalReq struct {
	Id          int `json:"id" form:"id"`
	GetCodeNum  int `json:"getCodeNum" form:"getCodeNum" `   //取码数量
	GetPhoneNum int `json:"getPhoneNum" form:"getPhoneNum" ` //取号数量
}

// TableName bcChannal表 BcChannal自定义表名 bc_channal
func (BcChannal) TableName() string {
	return "bc_channal"
}
